<style tyle="text/css">
	.modal-lg {
		width: 80%;
	}
</style>
<div class="modal-header">
	<h4 class="modal-title">机构信息</h4>
</div>
<div class="modal-body">
    <table class="table table-striped table-bordered dataTable table-condensed tree_table" style="table-layout:fixed">
        <thead>
            <tr>
                <th class="text-center">系统ID</th>
                <th class="text-center">系统名称</th>
                <th class="text-center">机构编号/名称</th>
                <th class="text-center">状态</th>
                <th class="text-center">操作</th>
            </tr>
        </thead>
        <tbody>
            <tr ng-repeat="company in companyList">
                <td class="text-center">{{company.docking_system_id}}</td>
                <td class="text-center">{{company.docking_system_name}}</td>
                <td class="text-center">
                    {{company.company_code}}
                    <span ng-if="company.company_name">【{{company.company_name}}】</span>
                    <span ng-if="!company.company_name" class="text-danger">【此机构不存在】</span>
                </td>
                <td class="text-center">{{company.state == '1'? '启用': '不启用'}}</td>
                <td class="text-center">
                    <button type="button" ng-if="company.state == '0'" class="btn btn-success btn-xs" ng-click="setUp(company)">启用</button>
                    <button type="button" ng-if="company.state == '1'" class="btn btn-danger btn-xs" ng-click="setDown(company)">停用</button>
                </td>
            </tr>
        </tbody>
    </table>
</div>

<div class="modal-footer">
	<!-- <button class="btn btn-success" type="button" ng-click="ok()">确定</button> -->
	<button class="btn btn-danger" type="button" ng-click="close()">关闭</button>
</div>